import utime as time
import app_config
import app_uart_recv



if __name__ == '__main__':
    #读取cfg信息------------------------------------------------------
    app_uart_recv.uart_thread()     #TTL串口输入线程
    cfg_result = app_config.read_cfg_data()     #读取详细信息
    print('''
    name:{},
    timestamp:{},
    hearttime:{},
    clientId:{},
    AccessToken:{},
    ProjectKey:{}'''.format(cfg_result["name"],cfg_result["timestamp"],cfg_result["hearttime"],cfg_result["triad"]["clientId"],cfg_result["triad"]["AccessToken"],cfg_result["triad"]["ProjectKey"]))
    while True:
        time.sleep(1)



